//RECORDED ZSCRIPT 1.23b
[Image,zscripticon.psd,0]
This ZScript will show you how to create a textured Basketball using a texture and a procedural material.
[PD][PD]
[Image,ball.psd,1]
[pd]
[IButton,"Run the ZScript","Press to play this ZScript. ZScript can be aborted at anytime by pressing the esc key.",

[IReset]
[IUnPress,PREFERENCES:INTERFACE:FLOAT MENU]

[IPress,LAYER:INVENTORY:CREATE]
[FileNameSetNext,splashscreen.psd]
[IPress,DOCUMENT:IMPORT]
[IPress,LAYER:LAYER 1]

[Note, "\Cffa000 Making a Basketball\Cc0c0c0\n\n  S O U T H E R N g r a p h i c s 2001",,,,,400]

[Note,"Start with a basic 3D Sphere from the tool panel.",TOOL:Sphere3D,10]
[IPress,TOOL:Sphere3D]


[IUnPress,PREFERENCES:INTERFACE:FLOAT MENU]
[IPress,TOOL:Sphere3D]
[CanvasStroke,(ZObjStrokeV02n72=H1A7V11EH1A8V11FH1A9V120H1A9V121H1A9V122H1AAV123H1ABV124H1ABV125H1ACV126H1ADV127H1ADV129H1AEV129H1AFV12BH1B0V12CH1B0V12DH1B1V12EH1B1V12FH1B2V131H1B3V132H1B3V133H1B4V135H1B5V136H1B6V138H1B7V139H1B8V13BH1B9V13DH1BAV13FH1BBV141H1BCV143H1BDV145H1BFV147H1C1V14DH1C3V153H1C5V155H1CBV15BH1CDV161H1CFV167H1D0V16DH1D2V16FH1D4V175H1D5V177H1D7V17FH1D8V181H1DBV185H1DCV187H1DFV18BH1E0V18EH1E2V190H1E3V193H1E5V196H1E7V199H1E8V19CH1EAV19FH1ECV1A3H1EEV1A6H1EFV1A9H1F2V1ADH1F3V1B0H1F6V1B4H1F8V1B7H1FBV1BCH1FDV1BFH200V1C2H202V1C5H204V1C8H206V1CBH207V1CDH208V1CFH208V1D0H209V1D1H20AV1D3H20AV1D3)]

[Note,"Enter EDIT mode.",TRANSFORM: EDIT]
[IPress,TRANSFORM: EDIT]

[Note,"Increase the mesh resolution.",INITIALIZE:HDivide,512,-1]
[ISet,TOOL:MODIFIERS:INITIALIZE:HDivide,512]
[Note,"",INITIALIZE:INITIALIZE:VDivide,256]
[ISet,TOOL:MODIFIERS:INITIALIZE:VDivide,256]

[Note,"Create the material for the Basketball using SPHERICAL BLEND.",MATERIAL:SphericalBlend]
[IPress,MATERIAL:SphericalBlend]

[Note,"Now alter the following modifiers.",MATERIAL:MODIFIERS:S1]
[IPress,MATERIAL:MODIFIERS:S1]
[Delay,2]
[ISet,MATERIAL:MODIFIERS:Blend,4]
[Delay,2]
[ISet,MATERIAL:MODIFIERS:HVScale,42]
[Delay,2]
[ISet,MATERIAL:MODIFIERS:RadialScale,100]
[Delay,2]

[IPress,MATERIAL:MODIFIERS:S2]
[Delay,2]
[ISet,MATERIAL:MODIFIERS:Ambient,20]
[Delay,2]
[ISet,MATERIAL:MODIFIERS:Diffuse,60]
[Delay,2]
[ISet,MATERIAL:MODIFIERS:Specular,60]
[Delay,2]
[IColorSet,250,159,0]
[IColorSet,217,116,0]

[Note,"Import the balltexture.psd file to use as your base texture.",TEXTURE:INVENTORY:IMPORT]
[FileNameSetNext,balltexture.psd]
[IPress,TEXTURE:INVENTORY:IMPORT]

[CanvasStroke,(ZObjStrokeV02n26=
H247V67H246V67H244V65H243V65H242V65H238V5FH22EV57H225V50H21EV4AH214V44H204V3DH1F9V38H1EDV31H1E5V23H1E5V12H1E7V3H1E8V-3H1E9V-9H1F2V-15H200V-21H20BV-28H213V-29H215V-2AH223V-2BH225V-2CH225V-2C)]
[CanvasStroke,(ZObjStrokeV02n26=
HAAV12AHAAV12BH99V133H94V134H8BV138H83V13DH74V145H65V149H58V14AH4AV14DH32V153H2DV155H2AV158H2AV159H2BV15CH2EV15FH34V166H3AV16EH40V176H45V17DH46V17DH4FV17CH54V17AH5BV177H60V175H60V175)]

[Note,"and the ballalpha.psd to be used to create the ridges in the ball.",ALPHA:IMPORT]
[FileNameSetNext,ballalpha.psd]
[IPress,ALPHA:IMPORT]

[NOte,"USe the alpha to mask the ball.",TOOL:MODIFIERS:SELECTION:Alp,-1]
[IPress,TOOL:MODIFIERS:SELECTION:Alp]

[Note,"Then inflate the ball. Masked areas become indented.",TOOL:MODIFIERS:DEFORMATION:Inflat]
[ISet,TOOL:MODIFIERS:DEFORMATION:Inflat,-10]

[IPress,TOOL:MODIFIERS:SELECTION:Clear]
[CanvasStroke,(ZObjStrokeV02n28=
HB5V8AHC1V8EHC6V93HD1V9FHDCVAEHE4VB7HEDVBFHF2VC4HF3VBEHF3V95HF3V41HF6V25HF6V1CHF6V1AHF2V1AHEDV2CHCBV62HC8V72HC7V7AHBEV83HB6V7CHB4V77HB3V77HB2V78HB0V7FHAEV81HAEV84HAEV84)]
[CanvasStroke,(ZObjStrokeV02n13=
H68V198H68V197H67V18CH61V183H58V178H53V171H50V16EH4FV16EH4CV16FH4AV172H48V176H46V17CH46V17C)]
[CanvasStroke,(ZObjStrokeV02n17=
H276V1AAH276V1ABH267V1C3H256V1D3H249V1D8H242V1DBH22BV1E0H207V1E3H1F8V1E7H1E7V1EAH1D4V1EAH1C2V1E7H1B6V1E4H1A8V1E0H1A7V1E0H1A6V1E0H1A6V1E0)]
[CanvasStroke,(ZObjStrokeV02n38=
H79V95H80V98H86V9EH8CVA4H96VACHA3VB4HB6VB8HCBVBAHE2VBAHF4VBBH101VBDH114VC0H125VC1H138VC1H146VBBH14BVB2H14AVA4H147V9FH146V9DH146V9CH147V9AH149V96H14FV8EH157V8BH175V86H182V85H18CV84H193V84H192V84H18AV7DH184V76H17CV71H174V6EH166V69H160V66H158V63H154V62H154V62)]


[Note,"TUTORIAL END".]
]

[PD]
[ButtonFind,ZScript:Show Actions,"TIP: Turn SHOW ACTIONS on before running the ZScript."]
[PD][PD]

[PaintPageBreak]

[pd]
[FontSetSizeMedium][FontSetOpacity,1][penMove,0,6]\Cffa000Managing S O U T H E R N g r a p h i c s ZScipts\Cc0c0c0: 
[FontSetOpacity,.5][FontSetSizeSmall]Create a sub-directory in your default\Cffa000 ZScripts\Cc0c0c0 folder called \Cffa000 SGFXZScripts.\Cc0c0c0 Place any further ZScripts from Sgfx in there in its own folder. More ZScripts can can found at\Cffa000 www.southerngfx.co.uk\Cc0c0c0:   
[pd]  
[iButton," Load a Tutorial... ","Load a ZScript tutorial",[fileNameSetNext,""][iPress,7427]
]
[PenMoveDown]
[PenMoveDown]
[FontSetSizeMedium][FontSetOpacity,1]Trademarks

[FontSetOpacity,.5]
[FontSetSizeSmall]Pixologic and the Pixologic logos are registered trademarks of Pixologic, Inc. ZBrush is a trademark of Pixologic, Inc.



